import 'package:kmxy_base_example/page/webview/webview_page_state.dart';

import 'package:kmxy_base/base/base_package.dart';

class WebviewPageView extends WebviewPageState {
  @override
  Widget setPageContent(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: const Text(
          'Webview案例',
          style: TextStyle(
            color: Colors.white,
            fontWeight: FontWeight.w700,
          ),
        ),
      ),
      body: SafeArea(
        child: InAppWebView(
          initialUrlRequest:
              URLRequest(url: Uri.parse('https://www.baidu.com')),
        ),
      ),
    );
  }
}
